<script setup lang="ts">
import { ref } from "vue"
import ImgUtil from '@/utils/imgutil'
import A from './A.vue'
defineProps<{ msg: string }>()
const count = ref(0)
</script>

<template>
  <div class="card">
    <A></A>
    <h1>{{ msg }}</h1>
    <img :src="ImgUtil.getImg('1.png')" alt="" />
    <img :src="ImgUtil.getImg('童书馆.png')" alt="" />
    <img :src="ImgUtil.getImg('拼团.png')" alt="" />
    <img :src="ImgUtil.getImg('loginregisterPic.jpg')" alt="" />
    <button type="button" @click="count++">count is {{ count }}</button>
    <p>
      Edit
      <code>components/HelloWorld.vue</code> to test HMR
    </p>
  </div>
</template>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
